qx.Class.define("mutual.utilities", {
	statics : {
		isNumeric : function (input){
			var patron = /^\d+$/;
  			return patron.test(input);
		},
		
		isDecimal : function(input){
			var patron = /^\$?(\d{1,6})(\.\d{0,2})?$/;
  			return patron.test(input);
		},
		
		isBlank : function (str) {
		    return (!str || /^\s*$/.test(str));
		},
		
		isValidDate : function(date){
			var patron = /^\d{1,2}\/\d{2}\/\d{4}$/;
  			return patron.test(date);		
		},
		
		getDateObject : function (date){
			var day = parseInt(date.split("-")[2],10);
			var month = parseInt(date.split("-")[1],10) - 1;
			var year = parseInt(date.split("-")[0],10);
			
			return new Date(year, month, day);
		}
	}
});

